<?php
//Pages JSON
require_once "../load.php";
error_reporting(0);
if (get_magic_quotes_gpc()) {
    $_POST = Owl_Format::stripslashes_deep($_POST);
}

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
header("Cache-Control: no-cache, must-revalidate" );
header("Pragma: no-cache" );
header("Content-type: text/x-json");

$page = ($_POST["page"]) ? $_POST["page"] : 1;
$owl_page = new Owl_Page();

echo $owl_page->to_json(array("page"=>$page));
